import java.util.Scanner;
public class z5204 {
    public static void main(String[] args) {
        System.out.println("输入几个数");
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int arr[] = new int[n];
        for(int i=0; i<n; i++){
            arr[i] = in.nextInt();
        }
        ArrySquareReverse(arr,n);
    }
    public static void ArrySquareReverse(int arr[],int n){
        for(int i= 0; i<n; i++){
            arr[i] = arr[i]*arr[i];
        }
        for(int i= arr.length; i>0; i--){
            System.out.print(arr[i-1] + " ");
        }
    System.out.println();
    }
}
